|
<%'Get Image Files
Whichfolder=server.mappath("\") & psFolder
Dim fs, f, f1, fc
Set fs = CreateObject("Scripting.FileSystemObject")
DirExists = fs.folderexists(WhichFolder)
FileCount = 0
If DirExists = "True" THEN
Set f = fs.GetFolder(Whichfolder)
Set fc = f.files
For Each f1 in fc
rLine = f1.name
FilePath = psFolder
FilePath = FilePath & rLine
FileCount = FileCount + 1
'Response.Write(rLine + " ")
If FileCount = 1 THEN %>
View by Thumbnails
|